home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / mflzt.exe / lha / MFLSYS.H < prev    next >
C/C++ Source or Header  |  1989-11-26  |  6KB  |  151 lines

  1. /************************************************************************/
  2. /*                                                                      */
  3. /*  MFLSYS header file                                                  */
  4. /*                                                                      */
  5. /*  Defines and function prototypes for printer access, serial          */
  6. /*  communications, gameport access, and miscellaneous system functions.*/
  7. /*                                                                      */
  8. /*  Copyright 1989 by Robert B. Stout dba MicroFirm                     */
  9. /*  All rights reserved                                                 */
  10. /*                                                                      */
  11. /*  Copyright 1986, 1987 by S.E. Margison                               */
  12. /*                                                                      */
  13. /*  Compiled by and for use with Zortech C/C++ 1.07 or later.           */
  14. /*                                                                      */
  15. /************************************************************************/
  16.  
  17. #ifndef MFL_SYS_H
  18. #define MFL_SYS_H
  19.  
  20. #include <mfldefs.h>
  21.  
  22. #ifndef _Cdecl_
  23.  #if __ZTC__ > 0x107
  24.   #define CONST__ const
  25.   #ifdef __STDC__
  26.    #define _Cdecl_
  27.   #else
  28.    #define _Cdecl_ cdecl
  29.   #endif
  30.  #else
  31.   #define CONST__
  32.   #define _Cdecl_
  33.  #endif
  34. #endif
  35.  
  36. #if __ZTC__ > 0x107
  37.  #if __cplusplus
  38.   extern "C" {
  39.  #endif
  40. #endif
  41.  
  42. /************************************************************************/
  43. /*                                                                      */
  44. /*  Encrypt/decrypt buffer data                                         */
  45. /*                                                                      */
  46. /************************************************************************/
  47.  
  48. extern char *cryptext;          /* The actual encryption/decryption key */
  49. extern int crypt_ptr;           /* Circular pointer to elements of key  */
  50. extern int crypt_length;        /* Set by caller to strlen(cryptext)    */
  51.  
  52. void    _Cdecl_ crypt(char *);
  53. LOGICAL _Cdecl_ cryptqual(char *, int);
  54.  
  55. /************************************************************************/
  56. /*                                                                      */
  57. /*  Serial communications functions                                     */
  58. /*                                                                      */
  59. /************************************************************************/
  60.  
  61. void    _Cdecl_ setport(int, int),
  62.         _Cdecl_ setdtr(int, int),
  63.         _Cdecl_ setrts(int, int),
  64.         _Cdecl_ writechar(int, int);
  65.  
  66. int     _Cdecl_ readchar(int),
  67.         _Cdecl_ ready_recv(int),
  68.         _Cdecl_ ready_xmt(int),
  69.         _Cdecl_ chkdsr(int),
  70.         _Cdecl_ chkdcd(int),
  71.         _Cdecl_ chkcts(int),
  72.         _Cdecl_ chkring(int),
  73.         _Cdecl_ config_port(unsigned, int, int, int, int);
  74.  
  75. /************************************************************************/
  76. /*                                                                      */
  77. /*  Printer functions                                                   */
  78. /*                                                                      */
  79. /************************************************************************/
  80.  
  81. void    _Cdecl_ pr_putline(char *),
  82.         _Cdecl_ pr_puts(char *),
  83.         _Cdecl_ pr_set(int),
  84.         _Cdecl_ pr_nl(void),
  85.         _Cdecl_ pr_eject(void),
  86.         _Cdecl_ pr_carret(void);
  87.  
  88. int     _Cdecl_ blpr(char, int),
  89.         _Cdecl_ blprstat(int),
  90.         _Cdecl_ pr_putc(char),
  91.         _Cdecl_ PrtSc(void),
  92.         _Cdecl_ getPrtSc_stat(void);
  93.  
  94. /************************************************************************/
  95. /*                                                                      */
  96. /*  Gameport functions                                                  */
  97. /*                                                                      */
  98. /************************************************************************/
  99.  
  100. void            _Cdecl_ init_game(unsigned char),
  101.                 _Cdecl_ clear_game(void),
  102.                 _Cdecl_ debounce(void);
  103.  
  104. unsigned char   _Cdecl_ get_press(void);
  105.  
  106. /************************************************************************/
  107. /*                                                                      */
  108. /*  Error handling functions                                            */
  109. /*                                                                      */
  110. /************************************************************************/
  111.  
  112. void    _Cdecl_ aabort(int),
  113.         _Cdecl_ error(char *);
  114.  
  115. int     _Cdecl_ criterr(),
  116.         _Cdecl_ ctlbrk();
  117.  
  118. /************************************************************************/
  119. /*                                                                      */
  120. /*  Miscellaneous system functions                                      */
  121. /*                                                                      */
  122. /************************************************************************/
  123.  
  124. void    _Cdecl_ get_code_adr(unsigned int *, unsigned int *, unsigned int *),
  125.         _Cdecl_ get_data_adr(unsigned int *, unsigned int *, unsigned int *),
  126.         _Cdecl_ exit2dos(void),
  127.         _Cdecl_ shell2dos(char *);
  128.  
  129. int     _Cdecl_ _getdi(int),
  130.         _Cdecl_ ibmtype(void);
  131.  
  132. LOGICAL _Cdecl_ ansisys(void);
  133.  
  134. #ifndef COLD
  135.  #define COLD 0
  136. #endif
  137.  
  138. #ifndef WARM
  139.  #define WARM 1
  140. #endif
  141.  
  142. void    _Cdecl_ reboot(int);
  143.  
  144. #if __ZTC__ > 0x107
  145.  #if __cplusplus
  146.   }
  147.  #endif
  148. #endif
  149.  
  150. #endif /* MFL_SYS_H */
  151.